const asyncRoutes = [
  {
    path: "/project",
    meta: {
      title: "项目管理",
      icon: "eos-icons:products",
      rank: 1
    },
    children: [
      {
        path: "/project/project",
        name: "project",
        meta: {
          title: "项目管理",
          icon: "material-symbols-light:splitscreen-bottom-outline-sharp"
        }
      },
      {
        path: "/project/station",
        name: "station",
        meta: {
          title: "站点管理",
          icon: "solar:station-outline"
        }
      },
      {
        path: "/project/coordination",
        name: "coordination",
        meta: {
          title: "站点指派",
          icon: "material-symbols:touch-double-outline-sharp"
        }
      },
      {
        path: "/project/supporting",
        name: "supporting",
        meta: {
          title: "站点建设",
          icon: "ic:outline-precision-manufacturing"
        }
      },
      {
        path: "/project/opened",
        name: "opened",
        meta: {
          title: "站点开通",
          icon: "ic:outline-broadcast-on-personal"
        }
      }
    ]
  },
  {
    path: "/maintenance",
    meta: {
      title: "站点运维",
      icon: "material-symbols:engineering-outline",
      rank: 2
    },
    children: [
      {
        path: "/maintenance/meter",
        name: "meter",
        meta: {
          title: "电表管理",
          icon: "fluent:content-view-gallery-lightning-28-regular"
        }
      },
      {
        path: "/maintenance/sendMeter",
        name: "sendMeter",
        meta: {
          title: "电表抄表",
          icon: "solar:suspension-bolt-line-duotone"
        }
      },
      {
        path: "/maintenance/createOwner",
        name: "createOwner",
        meta: {
          title: "生成订单",
          icon: "material-symbols:library-add-outline"
        }
      },
      {
        path: "/maintenance/ownerEle",
        name: "ownerEle",
        meta: {
          title: "业主电费",
          icon: "material-symbols:background-replace-outline"
        }
      },
      {
        path: "/maintenance/sendRecord",
        name: "sendRecord",
        meta: {
          title: "抄表记录",
          showLink: false
        }
      },
    ]
  },
  {
    path: "/eleManager",
    meta: {
      title: "电费支撑",
      icon: "material-symbols:electric-bolt-outline",
      rank: 3
    },
    children: [
      {
        path: "/eleManager/createOperator",
        name: "createOperator",
        meta: {
          title: "生成订单",
          icon: "material-symbols:library-add-outline"
        }
      },
      {
        path: "/eleManager/operatorEle",
        name: "operatorEle",
        meta: {
          title: "运营商电费",
          icon: "material-symbols:person-apron-outline"
        }
      },
      {
        path: "/eleManager/orderTarget",
        name: "orderAudit",
        meta: {
          title: "非标确认",
          icon: "hugeicons:audit-01"
        }
      }
    ]
  },
  {
    path: "/owner",
    meta: {
      title: "业主签约",
      icon: "uil:file-contract",
      rank: 4
    },
    children: [
      {
        path: "/owner/ownerContract",
        name: "ownerContract",
        meta: {
          title: "合同管理",
          icon: "teenyicons:contract-outline"
        }
      },
      {
        path: "/owner/ownerAudit",
        name: "ownerAudit",
        meta: {
          title: "合同审核",
          icon: "lsicon:contract-across-filled"
        }
      },
      {
        path: "/owner/ownerProjectCard",
        name: "ownerProjectCard",
        meta: {
          title: "项目卡片",
          icon: "mdi:id-card"
        }
      },
      {
        path: "/owner/ownerRent",
        name: "ownerRent",
        meta: {
          title: "业主场租",
          icon: "tabler:home-dollar"
        }
      },
      {
        path: "/owner/ownerRegist",
        name: "ownerRegist",
        meta: {
          title: "合同登记",
          showLink: false
        }
      },
    ]
  },
  {
    path: "/operator",
    meta: {
      title: "运营商签约",
      icon: "hugeicons:agreement-03",
      rank: 4
    },
    children: [
      {
        path: "/operator/stationData",
        name: "stationData",
        meta: {
          title: "前项资料",
          icon: "gg:database"
        }
      },
      {
        path: "/operator/operatorContract",
        name: "operatorContract",
        meta: {
          title: "合同管理",
          icon: "teenyicons:contract-outline"
        }
      },
      {
        path: "/operator/operatorRent",
        name: "operatorRent",
        meta: {
          title: "运营商场租",
          icon: "tabler:home-dollar"
        }
      },
      {
        path: "/operator/operatorRegist",
        name: "operatorRegist",
        meta: {
          title: "合同登记",
          showLink: false
        }
      },
    ]
  },
  {
    path: "/financial",
    meta: {
      title: "财务管理",
      icon: "solar:wallet-money-outline",
      rank: 5
    },
    children: [
      {
        path: "/financial/apply",
        name: "apply",
        meta: {
          title: "开票申请",
          icon: "mdi:invoice-text-send-outline"
        }
      },
      {
        path: "/financial/invoice",
        name: "invoice",
        meta: {
          title: "发票管理",
          icon: "hugeicons:invoice-03"
        }
      },
      {
        path: "/financial/refund",
        name: "refund",
        meta: {
          title: "发票回款",
          icon: "hugeicons:save-money-yen"
        }
      },
      {
        path: "/financial/refundRecord",
        name: "refundRecord",
        meta: {
          title: "回款记录",
          icon: "hugeicons:money-receive-square"
        }
      }
    ]
  },
  {
    path: "/customer",
    meta: {
      title: "签约方管理",
      icon: "gravity-ui:persons",
      rank: 6
    },
    children: [
      {
        path: "/customer/ownerManage",
        name: "ownerManage",
        meta: {
          title: "业主管理",
          icon: "material-symbols:deployed-code-account"
        }
      },
      {
        path: "/customer/operatorManage",
        name: "operatorManage",
        meta: {
          title: "运营商管理",
          icon: "material-symbols:inbox-text-person-rounded"
        }
      },
    ]
  },
];

export const getAsyncRoutes = () =>
  new Promise(resolve => {
    resolve({
      success: true,
      data: asyncRoutes
    });
  });
